<template>
  <div class="img-card" @click="$emit('clickItem', item)">
    <img src="@/assets/images/login.png" />
    <div class="img-card__right">
      <div class="img-card__title">
        <span class="title">{{ objData.title }}</span>
      </div>
      <div class="img-card__center">
        <div>{{ objData.desc }}</div>
      </div>
      <div class="img-card__date">
        <span class="jz">报名截止</span>
        <span class="tm">2022-02-22 12:30 </span>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    objData: {
      type: Object,
      default: () => {},
    },
  },
};
</script>
<style lang="scss" scoped>
.img-card {
  background-color: #fff;
  padding: 14px 16px;
  display: flex;
  border-radius: 4px;
  margin-bottom: 12px;
  img {
    width: 110px;
    height: 90px;
    border-radius: 4px;
  }
  &__right {
    flex: 1;
    padding-left: 10px;
  }
  &__title {
    height: 46px;
    .tag {
      float: left;
      text-align: center;
      line-height: 18px;
      margin-right: 10px;
      width: 32px;
      height: 18px;
      background: #d2e8ff;
      border-radius: 2px;
      font-size: 12px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #349aff;
    }
    .title {
      font-size: 16px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      color: #272b2d;
      line-height: 22px;
    }
  }
  &__center {
    padding: 4px 0;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #676b6b;
    div {
      margin-right: 6px;
    }
    span {
      font-size: 12px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #ffac24;
    }
  }
  &__date {
    padding-top: 5px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 12px;
    color: #676b6b;
    line-height: 17px;
    text-align: left;
    font-style: normal;
    .tm {
      color: #ffac24;
    }
  }
}
</style>
